const express = require('express');
const assessCtrl = require('../../app/controllers/assess.server.controller.js');

module.exports = (app) => {
    const router = express.Router();

    router.route('/addAssessByFoodId')
        .post(assessCtrl.addAssessByFoodId);

    router.route('/getAllAssessByFoodId/:foodId')
        .post(assessCtrl.getAllAssessByFoodItemId);

    router.route('/replyAssessByOrderId')
        .post(assessCtrl.replyAssessByOrderId);

    router.route('/getAssessWithoutRelayByMerchantId/:merchantId')
        .post(assessCtrl.getAssessWithoutRelayByMerchantId);


    router.route('/getAssessWithRelayByMerchantId/:merchantId')
        .post(assessCtrl.getAssessWithRelayByMerchantId);

    app.use('/assess', router);
};